package com.kun.companion.core.persistence.impl;


import com.kun.companion.core.persistence.DefaultAbstractDataPersistence;
import com.kun.companion.core.persistence.rule.FileCreateRule;
import com.kun.companion.core.persistence.strategy.TxtSerializationStrategy;

/**
 * txt文件数据持久化
 *
 * @author gzc
 * @since 2024/8/21
 **/
public abstract class TxtDataPersistence<D> extends DefaultAbstractDataPersistence<D> {

    public TxtDataPersistence(String baseStorageDir, FileCreateRule fileCreateRule) {
        super(baseStorageDir, fileCreateRule, new TxtSerializationStrategy<D>());
    }

}
